package model

type CurrencyInfo struct {
	Id int `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`

	BaseCurrency       string `json:"baseCurrency" gorm:"type:varchar(32);comment:基本货币"`
	SettlementCurrency string `json:"settlementCurrency" gorm:"type:varchar(32);comment:结算货币"`
	CurrencyPair       string `json:"currencyPair" gorm:"type:varchar(32);comment:货币交易对全称"`
	CurrencyType       string `json:"currencyType" gorm:"type:tinyint;comment:货币类型1、外汇 2、商品3、原油4、区块链"`
	PricePrecision     string `json:"pricePrecision" gorm:"type:tinyint(1);comment:报价小数位数"`
	PriceTick          string `json:"priceTick" gorm:"type:decimal(8,5);comment:价格最小变动单位"`
	TradeFee           string `json:"tradeFee" gorm:"type:decimal(4,2);comment:交易手续费"`
	SpreadFee          string `json:"spreadFee" gorm:"type:decimal(4,2);comment:点差手续费"`
	MinLotSize         string `json:"minLotSize" gorm:"type:decimal(6,2) unsigned;comment:最小交易手数"`
	MaxLotSize         string `json:"maxLotSize" gorm:"type:decimal(6,2);comment:最大交易手数"`
	Status             string `json:"status" gorm:"type:tinyint(1);comment:状态1、可用  2、停用"`
	IsCustom           string `json:"isCustom" gorm:"type:tinyint(1);comment:是否定制：1 标准 2 定制"`
	SwapLong           string `json:"swapLong" gorm:"type:decimal(5,2);comment:多单库存费"`
	SwapShort          string `json:"swapShort" gorm:"type:decimal(5,2);comment:空单库存费"`
	StopLevel          string `json:"stopLevel" gorm:"type:int;comment:最小止损位"`
	ThreeSwapday       string `json:"threeSwapday" gorm:"type:tinyint(1);comment:三倍库存费日"`
	AddPoint           string `json:"addPoint" gorm:"type:decimal(8,5);comment:点差加点"`
	PerPoint           string `json:"perPoint" gorm:"type:decimal(8,5);comment:固定点差"`
	Commission         string `json:"commission" gorm:"type:decimal(5,2);comment:每百万美元交易的佣金"`
	LotSize            string `json:"lotSize" gorm:"type:int(10) unsigned zerofill;comment:合约大小"`
	Tickval            string `json:"tickval" gorm:"type:decimal(10,3);comment:品种点值"`
	SettlementId       string `json:"settlementId" gorm:"type:int unsigned;comment:交易时间"`
	Leverage           string `json:"leverage" gorm:"type:varchar(30);comment:杠杆"`
	CommissionNew      string `json:"commissionNew" gorm:"type:decimal(8,6);comment:新手佣金（不分多空单）"`
	SwapNew            string `json:"swapNew" gorm:"type:decimal(8,6);comment:新手库存费（不分多空单）"`
	PairType           string `json:"pairType" gorm:"type:tinyint(1);comment:货币对种类1 直盘2 非直盘3 交叉盘"`
	MinLotSizeNew      string `json:"minLotSizeNew" gorm:"type:decimal(6,2) unsigned;comment:最小交易手数新手"`
	MaxLotSizeNew      string `json:"maxLotSizeNew" gorm:"type:decimal(15,2);comment:最大交易手数专业"`
	CodeType           string `json:"codeType" gorm:"type:varchar(4);comment:品种行情code"`
	StepLotSizeNew     string `json:"stepLotSizeNew" gorm:"type:decimal(8,5);comment:最小歩长"`
	StepLotSize        string `json:"stepLotSize" gorm:"type:decimal(4,2);comment:最小歩长"`
	ProLeverage        string `json:"proLeverage" gorm:"type:varchar(30);comment:专业模式杠杆"`
	Unordered          int64  `json:"unordered" gorm:"column:unordered"`
}

func (CurrencyInfo) TableName() string {
	return "currency_info"
}
